package com.hhm.service.impl;

import com.hhm.mapper.UserMapper;
import com.hhm.pojo.User;
import com.hhm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper um;
    @Override
    public User getUser(String username) {
        return um.getUser(username);
    }

    @Override
    public int add(User user) {
        return um.add(user);
    }
}
